package com.nuc.iblog.service;

import com.nuc.iblog.entity.Music;
import com.nuc.iblog.entity.Picture;
import com.nuc.iblog.entity.User;
import com.nuc.iblog.entity.Video;
import org.springframework.data.domain.Page;

import java.util.List;

public interface MediaService {
    public List<Music> getAllMusic(User user);
    public Page<Music> getPageMusic(User user, int page);
    public List<Picture> getAllPicture(User user);
    public Page<Picture> getPagePicture(User user,int page);
    public List<Video> getAllVideo(User user);
    public Page<Video> getPageVideo(User user,int page);
    public Music getMusic(int mid);
    public Music getbackgroundmusic(int isbackground,User user);
    public Picture getPicture(int pid);
    public Video getVideo(int vid);
    public int deleteMusic(int mid);
    public int deleteVideo(int vid);
    public int deletePicture(int pid);
}
